//对比接口interface与类型别名type

//相同点：都可以给对象指定类型

type student = {
  name: string;
  age: number;
  do(): void;
};

interface teacher {
  name: string;
  age: number;
  do(): void;
}

//不同点：type类型别名可以给对象指定类型，interface接口只能给对象指定类型

type customArray = (number | string)[];

let arr: customArray = ["1", 1];
